package dbTools.pojo.structure;

import java.util.List;

import dbTools.pojo.structure.property.BeanProperty;
import dbTools.pojo.structure.writer.IWriter;

public class BeanSubject {
	
	private BeanSubject id;
	
	private String path;
	
	private String fileName;
	
	private String packageStr;
	
	private List<String> importItems;
	
	private List<BeanProperty> propertys;

	private IWriter writer;
	
	private boolean isId;
	
	public BeanSubject()
	{
		
	}
	
	public BeanSubject(String fileName)
	{
		this.fileName=fileName;
	}
	
	
	public void createBean()
	{
		if(this.writer!=null)
		{
			this.writer.doWriterBean(this);
			
			if(this.id!=null)
			{
				this.writer.doWriterBean(id);
			}
		}
	}
	
	public IWriter getWriter() {
		return writer;
	}

	public void setWriter(IWriter writer) {
		this.writer = writer;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getPackageStr() {
		return packageStr;
	}

	public void setPackageStr(String packageStr) {
		this.packageStr = packageStr;
	}

	public List<String> getImportItems() {
		return importItems;
	}

	public void setImportItems(List<String> importItems) {
		this.importItems = importItems;
	}
	
	public BeanSubject getId() {
		return id;
	}

	public void setId(BeanSubject id) {
		this.id = id;
	}

	public List<BeanProperty> getPropertys() {
		return propertys;
	}

	public void setPropertys(List<BeanProperty> propertys) {
		this.propertys = propertys;
	}

	public boolean isId() {
		return isId;
	}

	public void setId(boolean isId) {
		this.isId = isId;
	}
	
}
